var cert_path = 'cer/cert.pem';
var keys_path = 'cer/key.unencrypted.pem';
var device_id = require('fs').readFileSync('./device_id.txt', 'utf-8');
// remember to remove "<", ">" and " "'s

var APNS = require('./apns').createServer(cert_path, keys_path);
APNS.notify(device_id, { alert:"Hello", sound: "default", badge:1 });
setInterval(function() {
	console.log(device_id);
	APNS.notify(device_id, { alert:"Hello", sound: "default", badge:1 });
}, 60000);
//APNS.end();
